import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/home/index.vue'
import TabBar from '../components/TabBar.vue'
const routes = [
  {
    path: '/',
    name: 'home',
    components:{
      default: Home,
      footer:TabBar
    }
  },
  {
    path: '/kind',
    name: 'kind',
    
    components:{
      default: () => import( '../views//kind/index.vue'),
      footer:TabBar
    }
  },
  {
    path: '/search',
    name: 'search',
    component: () => import( '../views//search/index.vue'),
      
    
  },
  {
    path: '/list',
    name: 'list',
    component: () => import( '../views//list/index.vue'),
      
    
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
